package com.cn.designpatterns.ex.concrete.builder;

/**
 * @author zhangyi
 * @date 2018/12/24 14:39
 */
public class CreateTeacher implements CreateHumanService{

    private Human human;

    public CreateTeacher(Human human) {
        this.human = human;
    }

    @Override
    public void doHead() {
        human.setHead("数学头脑");
    }

    @Override
    public void doHand() {
        human.setHand("粉笔手");
    }

    @Override
    public void doBody() {
        human.setBody("瘦弱的身子骨");
    }

    @Override
    public void doFoot() {
       human.setFoot("两脚疾风");
    }

    @Override
    public Human builder() {
        return human;
    }
}
